package main
import (
	"fmt"
)
//go语言的字符串编码强制UTF8
func main(){
	var address string = "浦建路1143号"
	//address[0] = "ss" golang中的字符是不可变，只能整体变
	fmt.Println(address)
	var str string = "abc\nabc"
	fmt.Println(str)
	var str1 string = `package main
	import (
		"fmt"
	)
	//go语言的字符串编码强制UTF8
	func main(){
		var address string = "浦建路1143号"
		//address[0] = "ss" golang中的字符是不可变，只能整体变
		fmt.Println(address)
		var str string = "abc\nabc"
		fmt.Println(str)
	}` //用反引号 显示所有的源码
	fmt.Println(str1)

	var str2 string = "hello " + 
		"world" + "world" + 
		"world" // golang 会在每一行默认执行一行结束 必须把 + 放到行尾，表示这一句没有执行完毕
	str2 += " haha!"
	fmt.Println(str2)

	var str3 int = 99
	var str4 string
	var str5 bool
	var str6 float32
	fmt.Printf("str3 = %d, str4 = %v, str5 = %t, str6 = %f",str3,str4,str5,str6)
}